package cn.apestar.modules.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 学堂显示类型. <br>
 * 类详细说明.
 * <p/>
 * Copyright: Copyright (c) 2016年04月21日 11:21
 * <p/>
 * Company:
 * <p/>
 * 
 * @author Kent
 * @version 1.0.0
 */
public enum LearningClassRoomType {

    COMMON("common", "PDF类型"), INTERNET("internet", "网页外链");

    private Object code;

    private String name;

    LearningClassRoomType(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getValue() {

        // TODO Auto-generated method stub
        return code.toString();
    }

    public String getName() {

        // TODO Auto-generated method stub
        return name;
    }

    /**
     * 返回该对象的MAP
     * 
     * @return MAP集合
     */
    public Map getMap() {

        Map m = new HashMap();
        m.put("type_id", code);
        m.put("type_name", name);
        return m;
    }

}
